Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require certain ERT env variables before running #109

Merged
merged 3 commits into from
Oct 17, 2024

Conversation

equinor-ruaj
Copy link
Contributor

fmu-dataio requires certain ERT variables to be set in order to create metadata correctly.
Add check to see if they are set, if not print error and exit.

@equinor-ruaj equinor-ruaj force-pushed the check-required-env-vars-are-set branch from ba1acc5 to af4c01f Compare October 16, 2024 12:06
Copy link
Member

@perolavsvendsen perolavsvendsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sikkert greit nok, men tror feilmeldingen bør ha litt mer info. Tror ikke den jevne bruker vil få så mye ut av den?

src/fmu/sumo/sim2sumo/main.py Outdated Show resolved Hide resolved
@equinor-ruaj equinor-ruaj merged commit 5b30fb8 into main Oct 17, 2024
6 checks passed
@equinor-ruaj equinor-ruaj deleted the check-required-env-vars-are-set branch October 17, 2024 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants